package com.fhao.friend;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

//@SpringBootApplication
//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//@SpringBootApplication
//@MapperScan("com.fhao.**.mapper") //扫描某个包路径下所有的接口,并把这些接口注册到mybatis当中
@SpringBootApplication
@MapperScan("com.fhao.**.mapper") //扫描某个包路径下所有的接口,并把这些接口注册到mybatis当中
@EnableFeignClients(basePackages = "com.fhao.api") //扫描api服务下的 openfeign
public class OjFriendApplication {
    public static void main(String[] args) {
        SpringApplication.run(OjFriendApplication.class,args);
    }
}
